package 建造者模式.造小人;

import java.awt.Graphics;

/**
 * @author zyl
 * @Description
 * @since 2024/1/4 14:53
 */

public class PersonThinBuilder extends PersonBuilder{

    public PersonThinBuilder(Graphics graphics) {
        super(graphics);
    }

    @Override
    public void buildHead() {
        g.drawOval(150,120,30,30);//头
    }

    @Override
    public void buildBody() {
        g.drawRect(160,150,10,50);//身体
    }

    @Override
    public void buildArmLeft() {
        g.drawLine(160,150,140,200);//左手
    }

    @Override
    public void buildArmRight() {
        g.drawLine(170,150,190,200);//右手
    }

    @Override
    public void buildLegLeft() {
        g.drawLine(160,200,145,250);//左脚
    }

    @Override
    public void buildLegRight() {
        g.drawLine(170,200,185,250);//右脚
    }
}
